<?php
namespace app\api\controller;
use \think\Request;
use \think\Db;
use think\Session;
use think\Config;
use think\Controller;
use app\Base;
class Apiuser
{
    public function index()
    {
        return '用户API借口模块运行正常!';
    }



    /**
     * @writer:yangjian
     * @DateTime:2018-01-15T11:11:46+0800
     * @rewriter:xx
     * @rewriter_date:YY-MM-DD
     * @description:用户登录接口
     * @param:
     * @return[type] [description]
     */
    public function login(){
    	// $post = request()->post();
    	// $where['account'] = $post['account'];
    	// $Re = Db::name('supplies')->where($where)->find();
    	// if($Re){
	    //     $result = Config::get('queue.success');
	    //     $result['info'] = $Re;
    	// }else{
    	// 	$result = Config::get('queue.error');
	    //     $result['info'] = $Re;
    	// }
        $result = Config::get('queue.success');
        return json($result);
    }

}
